package br.com.carrinho;

import java.util.ArrayList;
import java.util.List;

import br.com.biblioteca.Book;

public class ShoopingCart {

	private List<Book> listaLivro = new ArrayList<Book>();
	
	private static ShoopingCart cart;
	
	private ShoopingCart(){
		
	}
	
	public void add(Book aBook){
		listaLivro.add(aBook);
	}
	
	public static ShoopingCart getShopping(){
		if(cart == null)
			cart = new ShoopingCart();
		return cart;
	}
	
	public List<Book> getContent(){
		return listaLivro;
	}
	
	
}
